<style lang="less" scoped>
.panel {
  &-tag {
    display: inline;
    background: paleturquoise;
    color: #3399fe;
    border-radius: 2px;
    font-size: 12px;
    padding: 2px;
    margin-right: 4px;
  }
}
</style>

<template>
    <div class="panel">
        <div class="panel-tag" v-for="(item, index) in tags" :key="index">
            {{item}}
        </div>
    </div>
</template>
<script>
export default {
  props: ['items'],
  computed: {
    tags() {
      return this.items.split(',');
    }
  }
};
</script>

